﻿@using EyeOpen.Security.Mvc.Models
@model UserLoginViewModel

<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Authenticate", "Security")) {
	<fieldset>
		<legend>Login</legend>

		<div class="editor-field">
			Credentials 
			<br />
			admin@domain.com - password
		</div>
	
		@Html.ValidationSummary(true)

		<div class="editor-label">
			@Html.LabelFor(model => model.Email)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Email)
			@Html.ValidationMessageFor(model => model.Email)
		</div>

		<div class="editor-label">
			@Html.LabelFor(model => model.Password)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Password)
			@Html.ValidationMessageFor(model => model.Password)
		</div>

		<p>
			<input type="submit" value="Login" />
		</p>
	</fieldset>
}

<div>
	@Html.ActionLink("Back to List", "Index", "FrontEnd")
</div>